#if defined __cplusplus
        extern "C" {
#endif

void Login(
        const char* url, const char* first_name, const char* last_name,
        const char* password, int* code, char* sessionID, char* agentID,
        char *region_url);

void Connect(const char* region_url);
void Disconnect();

unsigned char *GetPacket();
void ReturnPacket(unsigned char* packet);

void GetIncomingPacket(unsigned char* packet, int* size, int timeout);
void SendOutgoingPacket(unsigned char* packet, int length);

#if defined __cplusplus
    }
#endif
